package com.gang.mapper;

import com.gang.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    User queryUserByUsername(@Param("username") String username);

    int insertUser(@Param("user") User user);

    List<User> queryAllUser();

    String querryUserDid(@Param("username") String username);

    int addDid(@Param("did") String did,@Param("username") String username);

    int addaddress(@Param("username") String username, @Param("address") String address);
}
